# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import uuid
from django.db import models
from account.models import Personnel, Client

# Create your models here.
class Order_form(models.Model): #订单表
    uid = models.UUIDField(primary_key=True, default=uuid.uuid4)
    order_washhair_name = models.ForeignKey(Personnel, related_name='washhair_name', null=True) #完成订单的洗发员工姓名
    order_havehaircut_name = models.ForeignKey(Personnel, related_name='havehaircut_name', null=True)  # 完成订单的理发员工姓名
    order_client_name = models.ForeignKey(Client, related_name='order_name', null=True)  #产生订单的客户名
    times = models.DateTimeField(auto_now=True) #订单时间
    order_money = models.IntegerField(null=True)  #订单金额